<%--
  Created by IntelliJ IDEA.
  User: webrx
  Date: 2017/6/10
  Time: 11:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Examples</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <link href="" rel="stylesheet">
    <style>

        .m-tab .u-tab.active{
            background: aqua;
        }

        .m-ct ul{
            display: none;
        }
        .m-ct ul.active{
            display: block;
        }
    </style>
    <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
    <script>
        $(function(){
            $(".u-tab").on("click",function(){
                var oTab=$(this);
                var oUl=$(".m-ct ul").eq(oTab.index());
                oUl.show().siblings().hide();
                oTab.addClass("active").siblings().removeClass("active");

                var url=oTab.attr("data-url");
                $("#j-more").attr("href",url);
            });
        });
    </script>
</head>
<body>
<div class="m-tab">
    <span class="u-tab active" >百度</span>
    <span class="u-tab" >新浪</span>
</div>
<div class="m-ct">
    <ul class="active">
        <li>1111111111111</li>
    </ul>
    <ul>
        <li>aaaaaaaaaaaaa</li>
    </ul>
</div>
</body>
</html>